﻿#ifndef DATACHANGE_H
#define DATACHANGE_H

#include <QObject>
#include <QMutex>
#include <QDebug>
#include <QVector>
#include "fft.h"


class datachange : public QObject
{
    Q_OBJECT
public:
    explicit datachange(QObject *parent = nullptr);
    ~datachange();
public slots:
    void creatchange();
    void startchange(char *tempsonardatabuf);
public:
    fft *m_fft;
    Complex** m_complexdata_in;
    Complex** m_complexdata_out;
    int chanel = 40;
    int dataLen = 16;
private:
    double fftdatabuf[40][24]; //转换完存放数据 //40通道每包250个点
signals:
    void endchange(QVector<QVector<double>>, QVector<QVector<double>>);
    //void endchange(double);

public slots:
};

#endif // DATACHANGE_H
